package com.llho.core.bo.impl;

import java.util.List;

import com.llho.core.bo.CatalogBo;
import com.llho.core.dao.CatalogDAO;
import com.llho.core.domain.Catalog;

public class CatalogBoImpl implements CatalogBo {

	CatalogDAO catalogDAO;
	// DI via Spring
	public void setCatalogDAO(CatalogDAO catalogDAO){
		this.catalogDAO = catalogDAO;
	}
	
	@Override
	public Catalog getById(Long id) {
		return catalogDAO.getById(id);
	}

	@Override
	public List<Catalog> getAll() {
		return catalogDAO.getAll();
	}

	@Override
	public void addNew(Catalog entity) {
		catalogDAO.addNew(entity);
	}

	@Override
	public void update(Catalog entity) {
		catalogDAO.update(entity);
	}

	@Override
	public void delete(Catalog entity) {
		catalogDAO.delete(entity);
	}

}
